package net.obxlabs.tweetpad.behaviour;

import net.nexttext.*;

public class UnlinkingKey extends Key {
	public UnlinkingKey(String propName) {
		super(propName);
	}
	
	public ActionResult behave(TextObject to) {
		if (FollowThumb.isLinked(to)) {
			FollowThumb.getLink(to).unlinkTextObject();
			FollowThumb.unlink(to);
		}
		return super.behave(to);
	}
}
